#!/bin/bash

sed -i 's/192.168.1.1/192.168.54.79/g' lede/package/base-files/files/bin/config_generate
sed -i "/set network.\$1.netmask='\$netm'/a \\\t\t\t\tset network.\$1.gateway='192.168.54.254'\n\t\t\t\tset network.\$1.dns='192.168.54.254 202.96.134.133'" lede/package/base-files/files/bin/config_generate
sed -i '/option start/d;/option limit/d;s/option leasetime\t12h/option ignore\t1/g' lede/package/network/services/dnsmasq/files/dhcp.conf